﻿using System;

namespace EasyConveyor
{
	/// <summary>
	/// Provides data for the <see cref="Application.MiddlewareInitialize"/> event.
	/// </summary>
	public sealed class MiddlewareInitializeEventArgs : EventArgs
	{
		internal MiddlewareInitializeEventArgs(IMiddleware middleware)
		{
			Middleware = middleware;
		}

		/// <summary>
		/// Gets the instance of the middleware that must be initialized.
		/// </summary>
		public IMiddleware Middleware { get; private set; }
	}
}
